package vn.fpt.fsoft.wed.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import vn.fpt.fsoft.business.OrganisationBu;

@Controller
public class OrganisationController {
	@Autowired
	OrganisationBu organisation;
	public void setOrganisation(OrganisationBu organisation) {
		this.organisation = organisation;
	}
	@RequestMapping(value="/show",method=RequestMethod.GET)
	public String show(ModelMap model){
		System.out.println("Da vao");
		try{
			model.addAttribute("list", organisation.getAll());
			
		}catch(Exception e){
			e.printStackTrace();
		}
		return "listOrganisation";
		
	}
}
